<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="dashujutable" style="margin:12px 0 18px;padding: 0 20px; " id="InfoTable">
   		<thead>
           <tr>
             <td height="26" align="center" class="dashujutable_top">车牌号</td>
             <td align="center" class="dashujutable_top">号牌种类</td>
             <td align="center" class="dashujutable_top">所有人</td>
             <td align="center" class="dashujutable_top">发动机号</td>
             <!-- <td align="center" class="dashujutable_top">号牌类型</td> -->
             <td align="center" class="dashujutable_top">操作</td>
           </tr>
       </thead>
       <tbody>
      </tbody>
</table>
<script type="text/javascript">
//查询过车报警信息
function biaogeDiv(tjld){
	$.ajax({
		type:'POST',
		url:'${ctx}/homebt/findYxcjPage.htm',
		data:{
			tjld:tjld,yxzt:3
		},
		dataType:'json',
		success:function(data, textStatus, jqXHR){
			//组装表格
			createAllContent(data.rows);	
		},
		error:function(XMLHttpRequest, textStatus, errorThrown){			
		}
	});
}
//创建表格内容
function createAllContent(data){
	$("#InfoTable tbody").empty();//清空原始数据
	var tableBodyStr = "";
	if(data==""){
		tableBodyStr+="";
	}else{
		$.each(data,function(i,n){
			if(i==10){//只显示14条数据
				return false;
			}else{
				tableBodyStr+="<tr>";
				if(i%2==0){
					tableBodyStr+="<td height=\"28\" class=\"dashujutable_nr1\"  align=\"center\">"+n.hphmmc+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\">"+n.hpzlmc+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\">"+n.syr+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\">"+n.fdjh+"</td>";
					if(n.yxzt=='0'){
						tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">待采集</a></td>"
					}else if(n.yxzt=='1'){
						tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">采集待审核</a></td>"
					}else if(n.yxzt=='3'){
						tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">重新采集</a></td>"
					};
/* 					tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" sbxh=\""+n.sbxh+"\">"+n.count1+"</a></td>";
					tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\"><a href=\"#\" onclick=\"drkCount(this);\" sbxh=\""+n.sbxh+"\" style=\" color: #74b95f\">"+n.count2+"</td>"; */
				}else{
					tableBodyStr+="<td height=\"28\" class=\"dashujutable_nr2\"  align=\"center\">"+n.hphmmc+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\">"+n.hpzlmc+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\">"+n.syr+"</td>";
					tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\">"+n.fdjh+"</td>";
					if(n.yxzt=='0'){
						tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">待采集</a></td>"
					}else if(n.yxzt=='1'){
						tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">采集待审核</a></td>"
					}else if(n.yxzt=='3'){
						tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" xh=\""+n.xh+"\" style=\" color: #ff3636\">重新采集</a></td>"
					};
			/* 		tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\"><a href=\"#\" onclick=\"dclCount(this);\" sbxh=\""+n.sbxh+"\">"+n.count1+"</a></td>";
					tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\"><a href=\"#\" onclick=\"drkCount(this);\" sbxh=\""+n.sbxh+"\" style=\" color: #74b95f\">"+n.count2+"</td>"; */
				}
				tableBodyStr+="</tr>";
			}
		});
	}	
	$("#InfoTable tbody").html(tableBodyStr);
	//表格变颜色	
	$(".dashujutable>tbody>tr").hover(
	  function () {
	    $(this).children(".dashujutable_nr1").css({background:"#cee4ff"});
	  },
	  function () {
		 $(this).children(".dashujutable_nr1").css({background:"#ffffff"});
	  }
	);
	$(".dashujutable>tbody>tr").hover(
	  function () {
	    $(this).children(".dashujutable_nr2").css({background:"#cee4ff"});
	  },
	  function () {
		 $(this).children(".dashujutable_nr2").css({background:"#f1f1f1"});
	  }
	);
}

function dclCount(flag){
	var xh=$(flag).attr("xh");
	parent.addTab("采集影像档案信息","${ctx}/yxxx/findYxcjByxhFirstIn.htm?xh="+xh);
} 
/* //待审核违法数
function dshCount(flag){
	var sbxh=$(flag).attr("sbxh");
	parent.addTab("违法审核","${ctx}/wfplsh/wfsh.htm?sbxh="+sbxh);
}
//待入库违法数
function drkCount(flag){
	var sbxh=$(flag).attr("sbxh");
	parent.addTab("批量入库","${ctx}/plrk/wfrk.htm?sbxh="+sbxh);
} */
</script>
